package com.globalwave.datasync;


public class SyncTable {

	private SyncConfig config = null ;
	
	private String dbCode = null ;
	
	private int dbType = -1 ;
	
	private String schema = null ;
	
	private String tableName = null ;
	
    private SyncColumn[] syncColumns ;
    private SyncColumn[] keys ;
    private SyncColumn[] filter ;

    public SyncTable(SyncConfig config) {
    	this.config = config ;
    }

    /**
     * key字段的数据类型，用于把字符形式的key值转换为适当类型的key值
     */
    private int[] keyTypes ;
    /**
     * 表字段名称列表
     */
    private String[] columnNames ;
	public String getDbCode() {
		return dbCode;
	}
	public void setDbCode(String dbCode) {
		this.dbCode = dbCode;
	}
	public int getDbType() {
		return dbType;
	}
	public void setDbType(int dbType) {
		this.dbType = dbType;
	}
	public String getSchema() {
		return schema;
	}
	public void setSchema(String schema) {
		this.schema = schema;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public SyncColumn[] getSyncColumns() {
		return syncColumns;
	}
	public void setSyncColumns(SyncColumn[] syncColumns) {
		this.syncColumns = syncColumns;
	}
	public SyncColumn[] getKeys() {
		return keys;
	}
	public void setKeys(SyncColumn[] keys) {
		this.keys = keys;
	}
	public int[] getKeyTypes() {
		return keyTypes;
	}
	public void setKeyTypes(int[] keyTypes) {
		this.keyTypes = keyTypes;
	}
	public String[] getColumnNames() {
		return columnNames;
	}
	public void setColumnNames(String[] columnNames) {
		this.columnNames = columnNames;
	}
	public SyncConfig getConfig() {
		return config;
	}
	public void setConfig(SyncConfig config) {
		this.config = config;
	}
	public SyncColumn[] getFilter() {
		return filter;
	}
	public void setFilter(SyncColumn[] filter) {
		this.filter = filter;
	}
    

}
